

var  routeService={
    Attachment:{
        getAttachment:function(id){
            return "Attachment/getAttachment/"+id
        }
    },

    Area:{
        getProvince:function(){
            return "Area/getProvince";
        },
        getCity:function(provincecode){
           return  "Area/getCity/"+provincecode;
        },
        getCounty:function(citycode){
            return "Area/getCounty/"+citycode;
        },
        getAllArea:function(provincecode,citycode,isreturn) {
            return "Area/getAllArea?provincecode="+provincecode+"&citycode="+citycode+"&isreturn="+isreturn;
        }
    },
    CspInquiry:{
        getCspInquiryList:function(
                CspInquiryCode:string,
                CspInquiryChildCode:string,
                status:string,
                startTime:string,
                endTime:string,
                startAddress:string,
                endAddress:string,
                skip:number,
                count:number
                ){
            return "CspInquiry/getCspInquiryList?cspinquirycode="+CspInquiryCode+"&cspInquirychildcode="+CspInquiryChildCode+'&status='+status+'&startTime='+startTime+'&endTime='+endTime+'&startAddress='+startAddress+'&endAddress='+endAddress+'&skip='+skip+'&count='+count

        },

        getCspInquiry:function(id){
            return "CspInquiry/getCspInquiry/"+id
        },
        addCspInquiry:"CspInquiry/addCspInquiry",//attention!!!
        editCspInquiry:function(id){
            return "CspInquiry/editCspInquiry/"+id
        },
        deleteCspInquiry:function(id){
            return "CspInquiry/deleteCspInquiry/"+id
        }
    },
    CspOrder:{
        getCspOrderList:function(  
                orderId:string,
                status:string,
                startTime:string,
                endTime:string,
                startAddress:string,
                endAddress:string,
                skip:number,
                count:number
            ){
            return "CspOrder/getCspOrderList?orderid="+orderId+"&status="+status+"&starttime="+startTime+"&endtime="+endTime+"&startaddress="+startAddress+"&endaddress="+endAddress+"&skip="+skip+"&count="+count;
        },
        getCspOrder:function(id){
            return "CspOrder/getCspOrder/"+id
        },
        addCspOrder:function(){
            return "CspOrder/addCspOrder"
        },//attention
        editCspOrder:function(id){
            return "CspOrder/editCspOrder/"+id
        },
        deleteCspOrder:function(id){
            return "CspOrder/deleteCspOrder/"+id
        }
    },
    CustomerRepresentative:{
        getCustomerList:function(enterpriseid,skip,count){
            return "CustomerRepresentative/getCustomerList?enterpriseid="+enterpriseid+"&skip="+skip+"&count="+count;
        }
    },
    Goods:{
        getGoodsList:function(enterpriseid,goodstypeid,skip,count){
            return "Goods/getGoodsList?enterpriseid="+enterpriseid+"&goodstypeid="+goodstypeid+"&skip="+skip+"&count="+count
        }
    },
    GoodsType:{
        getGoodsTypeList:function(enterpriseid,skip,count){
            return "GoodsType/getGoodsTypeList?enterpriseid="+enterpriseid+"&skip="+skip+"&count="+count;
        }
    },
    Inquiry:{
        getInquiryList:function(inquiryid,inquirychildid,Origin,Destination,status,begin,end,skip,count){
            return "Inquiry/getInquiryList?inquiryid="+inquiryid+"&inquirychildid="+inquirychildid+"&Origin="+Origin+"&Destination="+Destination+"&status="+status+"&begin="+begin+"&end="+end+"&skip="+skip+"&count="+count
        },
        getInquiry:function(id){
            return "Inquiry/getInquiry/"+id
        },
        editInquiry:function(id){
            return "Inquiry/editInquiry/"+id
        },
    },
    LinePrice:{
        getLinePriceList:function(enterpriseid,goodstypeid,goodsid,skip,count){
            return "LinePrice/getLinePriceList?enterpriseid="+enterpriseid+"&goodstypeid="+goodstypeid+"&goodsid"+goodsid+"&skip="+skip+"&count="+count
        },
        getLinePrice:function(id){
            return "LinePrice/getLinePrice/"+id
        }
    },
    Location:{
        getLocation:function(phone){
            return "Location/getLocation?phone="+phone;
        }
    },
    Order:{
        getOrderList:function(orderid,status,deliverybegin,deliveryend,origin,destination,skip,count){
            return "Order/getOrderList?orderid="+orderid+"&status="+status+"&deliverybegin="+deliverybegin+"&deliveryend="+deliveryend+"&origin="+origin+"&destination="+destination+"&skip="+skip+"&count="+count
        },
        getOrder:function(id){
            return "Order/getOrder/"+id
        }
    },
    Project:{
        getProjectList:function(enterpriseid,skip,count){
            return "Project/getProjectList?enterpriseid="+enterpriseid+"&skip="+skip+"&count="+count;
        },
        getProject:function(id){
            return "Project/getProject/"+id
        },
    },
    Settle:{
        getSettleList:function(enterpriseId,skip,count){
            return "Settle/getSettleList?enterpriseId="+enterpriseId+"&skip="+skip+"&count="+count;
        }
    },
    User:{
        login:function(){
            return "User/login";
        },
    //    updatePassword:function(oldPassword,password,rePassword){
    //        return "User/updatepassword?oldPassword="+oldPassword+"&password="+password+"&rePassword="+rePassword;
    //    }
        updatePassword:"User/updatepassword"
    
    }
}

export {routeService}